package com.ssy.lingxi.member.merchant.model.vo.lrc.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 万宁
 * @version 2.0.0
 * @date 2022-03-22
 */
public class MemberRightParamVO implements Serializable {
    private static final long serialVersionUID = -7997350340354026240L;

    /**
     * 权益Id
     */
    @NotNull(message = "权益Id要大于0")
    @Positive(message = "权益Id要大于0")
    private Long rightId;

    /**
     * 权益参数，百分比的小数部分，例如 12.3%，传递12.3
     */
    @NotNull(message = "权益参数要大于等于0")
    @PositiveOrZero(message = "权益参数要大于等于0小于等于100")
    @Max(value = 100, message = "权益参数要大于等于0小于等于100")
    private BigDecimal parameter;

    public Long getRightId() {
        return rightId;
    }

    public void setRightId(Long rightId) {
        this.rightId = rightId;
    }

    public BigDecimal getParameter() {
        return parameter;
    }

    public void setParameter(BigDecimal parameter) {
        this.parameter = parameter;
    }
}
